package com.usian.service.impl;

import com.usian.mapper.UserMapper;
import com.usian.pojo.Total;
import com.usian.pojo.User;
import com.usian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl  implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<Total> findList(Total total) {
        return userMapper.findList(total);
    }

    @Override
    public void Add(Total user) {
        userMapper.Add(user);
    }

    @Override
    public void del(Integer id) {
        userMapper.del(id);
    }

    @Override
    public Total upd(Integer id) {
       return userMapper.upd(id);
    }

    @Override
    public void update(Total user) {
        userMapper.update(user);
    }

}
